<?php

namespace app\index\controller;


class Login
{
    public function index()
    {
        $user = 'email';
        $uid = \think\facade\Db::name('member')->where('username', $user)->find();
        session('uid', $uid['id']);
        session('uname', $uid['username']);
        header('Location: '.'/index/Index/index');
    }
}
